package com.heima.common.util;

import com.heima.common.dto.User;

public class MediaThreadLocalUtil {
    public static ThreadLocal<User>  userThreadLocal=new ThreadLocal<>();

    public static void set(User user){
        userThreadLocal.set(user);
    }
    public static User get(){
        return userThreadLocal.get();
    }
    public static  void remove(){
        userThreadLocal.remove();
    }
}
